package com.zc.timedown.vo;

/**
 * ClassName:AchievementVo
 * Description:
 * DateTime: 2025/10/22 15:44
 * Author: zc
 * Version: 1.0
 */

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户成就VO
 */
@Data
@ApiModel(description = "用户成就信息")
public class AchievementVo {

    /** 主键 */
    @ApiModelProperty(value = "成就ID")
    private Long id;

    /** 用户ID */
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /** 成就类型 */
    @ApiModelProperty(value = "成就类型")
    private String achievementType;

    /** 达成日期 */
    @ApiModelProperty(value = "达成日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime achievedDate;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /** 更新时间 */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否完成")
    private Boolean earned;

    @ApiModelProperty(value = "勋章类型")
    private String medal;
}
